import { WeaTools } from 'ecCom';

// 查询发送记录
export const queryBroadcastRecord = params => WeaTools.callApi('/api/msgcenter/broadcast/queryBroadcastRecord', 'POST', params);
// 获取发送记录高级搜索表单
export const getConditions = params => WeaTools.callApi('/api/msgcenter/broadcast/getBroadcastRecordCondition', 'GET', params);

// 点击标题显示内容
export const getBroadcastContexts = params => WeaTools.callApi('/api/msgcenter/broadcast/getBroadcastRecord', 'POST', params);

// 发送广播消息接口
export const sendBroadcast = params => WeaTools.callApi('/api/msgcenter/broadcast/sendBroadcastRecord', 'POST', params);

// 显示接收人列表
export const getReceiverList = params => WeaTools.callApi('/api/msgcenter/broadcast/getBroadcastReceiverList', 'POST', params);

// 获取接收人高级搜索表单
export const getReceiverConditions = params => WeaTools.callApi('/api/msgcenter/broadcast/getBroadcastReceiverCondition', 'GET', params);

// 获取发送广播页面表单
export const getSendConditions = params => WeaTools.callApi('/api/msgcenter/broadcast/getSendBroadcastCondition', 'GET', params);

// 广播接收人选择全部时返回后台设置的该类型所有广播接收人id
export const getReceiverIds = params => WeaTools.callApi('/api/msgcenter/broadcast/getAllReceiverIds', 'POST', params);

// 消息中心根据broadcastid返回dialog
export const getMsgBroadcastDialog = params => WeaTools.callApi('/api/msgcenter/broadcast/getBroadcastRecordByBcastId', 'POST', params);
